import $api from './index';

interface RoleData {
    name?:string,
    path?:string,
    action?:string,
    pid: number | string;
}

export const getUser = () => $api.get('/users');
export const addRole = (data) => $api.post('/role', data);
export default {};
